public class FrenchDate implements Date{

	private Integer day;
	private Integer month;
	private Integer year;
	
	public FrenchDate(int d,int m,int y)
	
	{
		if((d>0)&&(d<32)&&(m>0)&&(m<13)&&(y>0))//se testeaza formatul datei
		{
			this.day=d;
			this.month=m;
			this.year=y;
		}
	}//constructorul clasei pt initializarea datelor in format "francez"
	public String getDate()
	{
		return this.day.toString()+" -"+this.month.toString()+"-"+
		this.year.toString();
	}//data in format american  zi-luna-an.
	public String toString()
	{
		return this.day.toString()+" -"+this.month.toString()+"-"+
		this.year.toString();
		
	}

}
